

/*function to act as our constructor for a modal dialog
		- set defaults in constructor and change via object properties
		- pass an object with key/value pairs to define properties */
		
function ModalDialog(divOverlay, divContent) {
	this.mOverlay = divOverlay;
	this.mContent = divContent;
	this.toggleBox = function() {
	var mo = document.getElementById(this.mOverlay);
	var mc = document.getElementById(this.mContent);
		if(	mo.style.visibility == "hidden" 
			|| mc.style.visibility == "hidden" 
			|| mc.style.visibility == "") {
			mo.style.visibility = "visible";
			mc.style.visibility = "visible";
		}else{
			mo.style.visibility = "hidden";
			mc.style.visibility = "hidden";
		}
	}
}